<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="User">

  <xsl:variable name="sesso">
    <xsl:choose>
      <xsl:when test='@sexid="24" or @sexid="26"'>
        1
      </xsl:when>
      <xsl:when test='@sexid="25" or @sexid="27"'>
        0
      </xsl:when>
    </xsl:choose>
  </xsl:variable>

  <div style="padding-top:10px; padding-right:15px;padding-bottom:4px;">
    <span class="body10red">
      <a style="text-decoration:underline;" href="/profileShow.aspx?userGuid={@GUID}">
        <xsl:value-of select="@Nick"/>
      </a>
    </span>,&#160;
    <span class="body10">
      <xsl:value-of select="@eta"/> anni
    </span>,&#160;
    <span class="body10red">
      <xsl:value-of select="@citydesc"/>
    </span>
    <span class="shycomment">
      &#160;(<xsl:value-of select="@regiondesc"/>,&#160;<xsl:value-of select="@countrydesc"/>)
    </span>
  </div>
  <xsl:choose>
    <xsl:when test='$sesso=0'>
      <div class='shycomment' style="padding-right:15px;padding-bottom:4px;">
        Iscritta dal
        <xsl:value-of select="substring(@datetime,1,10)"/>
      </div>
    </xsl:when>
    <xsl:when test='$sesso=1'>
      <div class='shycomment' style="padding-right:15px;padding-bottom:4px;">
        (iscritto dal <xsl:value-of select="substring(@datetime,1,10)"/>)
      </div>
    </xsl:when>
  </xsl:choose>
  
  <hr/>
  <xsl:choose>
	<xsl:when test='@userid = @viewerid'>
		<img border="0" src="/imgs/user/splash/{@splash}"/>
	</xsl:when>
	<xsl:when test='@isstaff = 1 and count(@thumb) &gt; 0 and count(@splash) &gt; 0'>
		<img border="0" src="/imgs/user/splash/{@splash}"/>
	</xsl:when>
	<xsl:when test='@isstaff = 1 and count(@thumb) = 0 and count(@splash) = 0 and count(@picname) &gt; 0'>
		<img border="0" src="/userspics/{@picname}"/>
	</xsl:when>
	<xsl:when test='(floor( @settings div 256 ) mod 2) and @isbuddy = 0'>
		<img border="0" src="/imgs/nobuddy.gif"/>
	</xsl:when>
	<xsl:when test="count(@thumb) &gt; 0 and count(@splash) &gt; 0">
		<img border="0" src="/imgs/user/splash/{@splash}"/>
	</xsl:when>
	<xsl:when test="count(@thumb) = 0 and count(@splash) = 0 and count(@picname) &gt; 0">
		<img border="0" src="/userspics/{@picname}"/>
	</xsl:when>
	<xsl:otherwise>
	</xsl:otherwise>
</xsl:choose>


</xsl:template>

</xsl:stylesheet>